unit mcCommands;

interface

uses Winapi.Windows;

type
  RCommand = record
    magic: DWORD;
    command: DWORD;
    data: DWORD;
    checksum: DWORD;
  end;

  RAck = record
    magic: DWORD;
    ack: DWORD;
  end;

const
  CHECKSUM_RAND = 13371337;
  MAGIC_DWORD = ($50 shl 8) + $44;

  COM_FILE_CLI = $F1 shl 8;
  COM_SCREEN = $EE shl 3;

  COM_RESEND_COM = $FFFF;//as magic and ack to request resend
  COM_CONNECT = $1;


  DATA_EMPTY = $FFFF;


  COM_PING = $1337;
  COM_PONG = $7331;


implementation

end.
